package com.example.controller;


import com.alibaba.fastjson.JSONObject;
import com.example.service.MerchRegisterService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;



@Slf4j
@RestController
public class MerchRegisterController {

    @Autowired()
    private MerchRegisterService merchRegisterService;

    /**
     *商户基础信息简要注册
     */
    @PostMapping("/v1/MerchRegister")
    public String MerchRegister(@RequestBody JSONObject reqJson) throws Exception {
        log.info("前端请求的参数：--------------------------------->>>{}",reqJson);
        return merchRegisterService.MerchRegisterService(reqJson);
    }
}
